<script>
  import { Handle, Position } from "@xyflow/svelte";
</script>

<main>
  <Handle type="target" position={Position.Left}></Handle>
  <Handle type="target" position={Position.Top}></Handle>
  <div style="border: 1px solid red;">
    <span>这是一个节点</span>
    <span><button>一个按钮</button></span>
  </div>
  <Handle type="source" position={Position.Right}></Handle>
  <Handle type="source" position={Position.Bottom}></Handle>
</main>
